UrlRequest

interface UrlRequest

The details about an URL request.

Types

Link copied to clipboard
interface Id
An identifier of the UrlRequest instance.

Functions

Link copied to clipboard
open fun browser(): Optional<Browser>
Returns an Optional that contains the Browser instance initiated this request or an empty Optional if it has not been determined or not available anymore.
Link copied to clipboard
open fun id(): UrlRequest.Id
Returns the identifier of this URL request.
Link copied to clipboard
open fun method(): String
Returns a string that represents the request method name.
Link copied to clipboard
open fun resourceType(): ResourceType
Returns the type of the resource the request is loading.
Link copied to clipboard
open fun sslVersion(): Optional<SslVersion>
Returns an Optional that contains the SSL connection version used to make this request if it is available and the current request represents an HTTPS request, otherwise an empty Optional.
Link copied to clipboard
Returns the total amount of data received from network after SSL decoding and proxy handling.
Link copied to clipboard
open fun totalBytesSent(): Long
Returns the total amount of data sent over the network before SSL encoding and proxy handling.
Link copied to clipboard
open fun url(): String
Returns a string that represents the URL address of this request.